const express = require('express')
const router = express.Router()
const userHandler = require('../router_handler/user.js')

router.post('/user/register', userHandler.userRegister)
router.post("/user/login", userHandler.userLogin);
router.post("/user/feedback", userHandler.feedback);
router.patch("/user/updateUserInfo", userHandler.updateUserInfo);
router.patch("/user/updateFeedback", userHandler.updateFeedback);
router.get('/user/getCode',userHandler.getCode)
router.get("/user/getUserInfo", userHandler.getUserInfo);
router.get("/user/getAllUser", userHandler.getAllUser);
router.get("/user/getFeedback", userHandler.getFeedback);
router.delete('/user/deleteFeedback',userHandler.deleteFeedback)

module.exports = router